//
//  OEOrderModel.m
//  OneEightyNine
//
//  Created by Mac on 2019/3/8.
//  Copyright © 2019 stoneobs. All rights reserved.
//

#import "OEOrderModel.h"

@implementation OEOrderModel
+ (NSDictionary *)mj_objectClassInArray{
    return @{@"goods_list":@"OEGoodModel"};
}
- (NSArray *)cus_menuArray{
    
    //curr_status
    //order_status
    if (self.order_status.integerValue == 0 ) {
        if (self.shipping_status.integerValue == 0) {
            return @[@"CANCLE"];
        }
        return @[@"RETURN"];
    }
    if (self.order_status.integerValue == 1 ) {
        //归还中
        return @[];
    }
    if (self.order_status.integerValue == 2 ) {
        //已完成
        return @[@"DELETE",@"BUY AGAIN"];
    }
    if (self.order_status.integerValue == 4 ) {
        //已完成
        return @[@"DELETE",@"BUY AGAIN"];
    }
    return @[];
}
@end
